package com.xjy.dao;

import com.xjy.pojo.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface cartMapper {

    List<Cart> getCartList(@Param("uid") int uid);

    List<Map> getCartList2(@Param("uid") int uid);

    int deleteCart(String cid);

    /*int addCart(Cart cart);*/
    int addCart(@Param("cid") String cid,@Param("uid") int uid,@Param("pid") String pid,@Param("num") int num);


    int updateCart(@Param("cid")String cid,@Param("num") int num);

}
